package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.service.WmUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class WmUserController {
    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/wm/newUser")
    public ResponseResult newUser(@RequestBody WmUser wmUser){
        return wmUserService.newUser(wmUser);
    }

}
